package com.easyOrder.core.json.probe;

import java.util.Map;

public class MapProbe<V> implements ObjectProbe {
	private Map<String, V> map;

	public MapProbe(Map<String, V> map) {
		this.map = map;
	}

	public Object getValue(String name) {
		return map.get(name);
	}

	@SuppressWarnings("unchecked")
	public void setValue(String name, Object value) {
		map.put(name, (V) value);
	}
}
